<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1" rel="stylesheet" type="text/css">

    <style>
        /* .my-enter-active {
            animation: bounce-in .5s;
        }

        .my-leave-active {
            animation: bounce-in .5s reverse;
        }

        
        @keyframes bounce-in {
            0% {
                transform: scale(0);
            }

            50% {
                transform: scale(1.5);
            }

            100% {
                transform: scale(1);
            }
        } */
    </style>
</head>

<body>
    <div id="app">

        <button @click="showOrHide">显示/隐藏</button>
        <transition name="custom-classes-transition"
        enter-active-class="animated rotateInDownLeft"
        leave-active-class="animated rotateOutDownLeft">
            <test v-show="isShow"></test>
        </transition>
    </div>
    <script src="./todomvc-app-template-master/node_modules/vue/dist/vue.js"></script>
    <script>
        let test = {
            template: "<div>显示12313撒旦的发生发生发撒地方阿斯蒂芬阿斯蒂芬啊手动阀手动阀阿斯蒂芬啊手动阀撒地方暗室逢灯啊手动阀阿萨飞洒发</div>"
        }

        const app = new Vue({
            el: "#app",
            data: {
                isShow: false
            },
            methods: {
                showOrHide() {
                    this.isShow = !this.isShow
                }
            },
            components: {
                test
            }
        })
    </script>
</body>

</html>